//
//  NewWorkRequest.swift
//  WeiBoSwift
//
//  Created by Jacky Sun on 16/4/28.
//  Copyright © 2016年 syf. All rights reserved.
//

import UIKit
import AFNetworking

class NewWorkRequest: AFHTTPSessionManager {

    // 初始化单例
    static let instancee : NewWorkRequest = {
        let url = NSURL(string: "https://api.weibo.com/")
        let t = NewWorkRequest(baseURL: url)
         t.responseSerializer.acceptableContentTypes = NSSet(objects:"application/json", "text/json", "text/javascript", "text/plain" ) as? Set<String>
        return t
    }()
    
    
   // 获取单例的方法
    class func shareNewWorkRequest() ->NewWorkRequest{
        return instancee
    }
    
    
    
    // 上传图片
    
}
